package com.yunxi.core.web;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "通用返回数据")
public class ApiResult<T> implements java.io.Serializable {
    @ApiModelProperty(value = "返回码", dataType = "Integer", example = "200")
    private Integer code;

    @ApiModelProperty(value = "提示信息", dataType = "String", example = "成功")
    private String msg;

    @ApiModelProperty(value = "数据", dataType = "Object")
    private T data;

    public T getData() {
        return data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(T data) {
        this.data = data;
    }
}
